﻿using UnityEngine;
using System.Collections;

namespace TCG
{
	public class Main : MonoBehaviour 
	{
		void Update ()
		{
			if (m_game != null)
			{
				m_game.Update ();
			}
		}

		void OnGUI ()
		{
			if (m_game == null)
			{
				float w = 300, h = 40;
				if (GUI.Button (new Rect ((Screen.width - w) * 0.5f, (Screen.height - h) * 0.5f, w, h), "Start Game"))
				{
					m_game = new TCGGame ();
					m_game.Start ();
				}
			}
		}

		TCGGame m_game;
	}
}
